<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>KSYMoviePlayerController Class Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
	<header>
		<div class="container" class="hide-in-xcode">
			
			<h1 id="library-title">
				<a href="../index.html">KSYMediaPlayer_iOS </a>
			</h1>

			<p id="developer-home">
				<a href="../index.html">Kingsoft</a>
			</p>
			
		</div>
	</header>

	<aside>
		<div class="container">
			<nav>
				<ul id="header-buttons" role="toolbar">
					<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

					<li id="on-this-page" role="navigation">
						<label>
							On This Page

							<div class="chevron">
								<div class="chevy chevron-left"></div>
								<div class="chevy chevron-right"></div>
							</div>

							<select id="jump-to">
	<option value="top">Jump To&#133;</option>
	
	<option value="overview">Overview</option>
	

	
	
	<option value="tasks">Tasks</option>
	
	

	
	
	<optgroup label="Properties">
		
		<option value="//api/name/audioDataBlock">audioDataBlock</option>
		
		<option value="//api/name/audioPan">audioPan</option>
		
		<option value="//api/name/bInterruptOtherAudio">bInterruptOtherAudio</option>
		
		<option value="//api/name/bufferEmptyCount">bufferEmptyCount</option>
		
		<option value="//api/name/bufferEmptyDuration">bufferEmptyDuration</option>
		
		<option value="//api/name/bufferSizeMax">bufferSizeMax</option>
		
		<option value="//api/name/bufferTimeMax">bufferTimeMax</option>
		
		<option value="//api/name/clientIP">clientIP</option>
		
		<option value="//api/name/contentURL">contentURL</option>
		
		<option value="//api/name/controlStyle">controlStyle</option>
		
		<option value="//api/name/deinterlaceMode">deinterlaceMode</option>
		
		<option value="//api/name/duration">duration</option>
		
		<option value="//api/name/fileList">fileList</option>
		
		<option value="//api/name/loadState">loadState</option>
		
		<option value="//api/name/localDNSIP">localDNSIP</option>
		
		<option value="//api/name/logBlock">logBlock</option>
		
		<option value="//api/name/messageDataBlock">messageDataBlock</option>
		
		<option value="//api/name/mirror">mirror</option>
		
		<option value="//api/name/naturalRotate">naturalRotate</option>
		
		<option value="//api/name/naturalSize">naturalSize</option>
		
		<option value="//api/name/networkDetectURL">networkDetectURL</option>
		
		<option value="//api/name/networkStatus">networkStatus</option>
		
		<option value="//api/name/playableDuration">playableDuration</option>
		
		<option value="//api/name/playbackSpeed">playbackSpeed</option>
		
		<option value="//api/name/playbackState">playbackState</option>
		
		<option value="//api/name/qosInfo">qosInfo</option>
		
		<option value="//api/name/readSize">readSize</option>
		
		<option value="//api/name/rotateDegress">rotateDegress</option>
		
		<option value="//api/name/scalingMode">scalingMode</option>
		
		<option value="//api/name/serverAddress">serverAddress</option>
		
		<option value="//api/name/shouldAutoplay">shouldAutoplay</option>
		
		<option value="//api/name/shouldEnableKSYStatModule">shouldEnableKSYStatModule</option>
		
		<option value="//api/name/shouldEnableVideoPostProcessing">shouldEnableVideoPostProcessing</option>
		
		<option value="//api/name/shouldHideVideo">shouldHideVideo</option>
		
		<option value="//api/name/shouldLoop">shouldLoop</option>
		
		<option value="//api/name/shouldMute">shouldMute</option>
		
		<option value="//api/name/superFastPlay">superFastPlay</option>
		
		<option value="//api/name/textureBlock">textureBlock</option>
		
		<option value="//api/name/videoDataBlock">videoDataBlock</option>
		
		<option value="//api/name/videoDecoderMode">videoDecoderMode</option>
		
		<option value="//api/name/view">view</option>
		
	</optgroup>
	

	

	
	<optgroup label="Instance Methods">
		
		<option value="//api/name/getCurrentPts">- getCurrentPts</option>
		
		<option value="//api/name/getMetadata">- getMetadata</option>
		
		<option value="//api/name/getMetadata:">- getMetadata:</option>
		
		<option value="//api/name/getVersion">- getVersion</option>
		
		<option value="//api/name/initWithContentURL:">- initWithContentURL:</option>
		
		<option value="//api/name/initWithContentURL:backupURL:">- initWithContentURL:backupURL:</option>
		
		<option value="//api/name/initWithContentURL:fileList:sharegroup:">- initWithContentURL:fileList:sharegroup:</option>
		
		<option value="//api/name/initWithContentURL:sharegroup:">- initWithContentURL:sharegroup:</option>
		
		<option value="//api/name/isPlaying">- isPlaying</option>
		
		<option value="//api/name/reload:">- reload:</option>
		
		<option value="//api/name/reload:flush:">- reload:flush:</option>
		
		<option value="//api/name/reload:flush:mode:">- reload:flush:mode:</option>
		
		<option value="//api/name/reset:">- reset:</option>
		
		<option value="//api/name/seekTo:accurate:">- seekTo:accurate:</option>
		
		<option value="//api/name/setExtSubtitleFilePath:">- setExtSubtitleFilePath:</option>
		
		<option value="//api/name/setHttpHeaders:">- setHttpHeaders:</option>
		
		<option value="//api/name/setTimeout:readTimeout:">- setTimeout:readTimeout:</option>
		
		<option value="//api/name/setTrackSelected:selected:">- setTrackSelected:selected:</option>
		
		<option value="//api/name/setUrl:">- setUrl:</option>
		
		<option value="//api/name/setUrl:fileList:">- setUrl:fileList:</option>
		
		<option value="//api/name/setVolume:rigthVolume:">- setVolume:rigthVolume:</option>
		
		<option value="//api/name/thumbnailImageAtCurrentTime">- thumbnailImageAtCurrentTime</option>
		
	</optgroup>
	
	
</select>
						</label>
					</li>
				</ul>
			</nav>
		</div>
	</aside>

	<article>
		<div id="overview_contents" class="container">
			<div id="content">
				<main role="main">
					<h1 class="title">KSYMoviePlayerController Class Reference</h1>

					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<th>Inherits from</th>
	<td>NSObject</td>
</tr><tr>
	<th>Conforms to</th>
	<td><a href="../Protocols/KSYMediaPlayback.html">KSYMediaPlayback</a></td>
</tr><tr>
	<th>Declared in</th>
	<td>KSYMoviePlayerController.h</td>
</tr>
						</tbody></table></div>
					

                    
					
					<div class="section section-overview">
						<a title="Overview" name="overview"></a>
						<h2 class="subtitle subtitle-overview">Overview</h2>
						<p>KSYMoviePlayerController</p>
					</div>
					
					

					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						

						
						

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/initWithContentURL:" title="initWithContentURL:"></a>
	<h3 class="method-title"><code><a href="#//api/name/initWithContentURL:">&ndash;&nbsp;initWithContentURL:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>初始化播放器并设置播放地址</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (instancetype)initWithContentURL:(NSURL *)<em>url</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>url</code></th>
						<td><p>视频播放地址，该地址可以是本地地址或者服务器地址.</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>返回KSYMoviePlayerController对象，该对象的视频播放地址ContentURL已经初始化。此时播放器状态为MPMoviePlaybackStateStopped.</p><p>返回KSYMoviePlayerController 实例</p>
			</div>
			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>该方法初始化了播放器，并设置了播放地址。但是并没有将播放器对视频文件进行初始化，需要调用 <a href="../Protocols/KSYMediaPlayback.html#//api/name/prepareToPlay">prepareToPlay</a>方法对视频文件进行初始化。</p><p>当前支持的协议包括：</p>

<ul>
<li>http</li>
<li>rtmp</li>
<li>file, 本地文件</li>
<li>rtsp</li>
</ul>
<div class="warning"><p><strong>Warning:</strong> 必须调用该方法进行初始化，不能调用init方法。</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/initWithContentURL:backupURL:" title="initWithContentURL:backupURL:"></a>
	<h3 class="method-title"><code><a href="#//api/name/initWithContentURL:backupURL:">&ndash;&nbsp;initWithContentURL:backupURL:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>初始化播放器并设置主播放地址和备用播放地址</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (instancetype)initWithContentURL:(NSURL *)<em>url</em> backupURL:(NSURL *)<em>backupURL</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>url</code></th>
						<td><p>视频主播放地址，使用HEVC流地址.</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>backURL</code></th>
						<td><p>视频备用播放地址，使用H264流地址</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>返回KSYMoviePlayerController对象，该对象的视频播放地址ContentURL已经初始化。此时播放器状态为MPMoviePlaybackStateStopped.</p>
			</div>
			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 3.0.1 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>如果设置了备用播放地址，则会在设备不支持硬解播放HEVC流时切换到备用播放地址进行播放</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/initWithContentURL:sharegroup:" title="initWithContentURL:sharegroup:"></a>
	<h3 class="method-title"><code><a href="#//api/name/initWithContentURL:sharegroup:">&ndash;&nbsp;initWithContentURL:sharegroup:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>初始化播放器并设置播放地址</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (instancetype)initWithContentURL:(NSURL *)<em>url</em> sharegroup:(EAGLSharegroup *)<em>sharegroup</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>url</code></th>
						<td><p>视频播放地址，该地址可以是本地地址或者服务器地址.</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>sharegroup</code></th>
						<td><p>opengl的sharegroup, 用于共享视频渲染texture</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>返回KSYMoviePlayerController对象，该对象的视频播放地址ContentURL已经初始化。此时播放器状态为MPMoviePlaybackStateStopped.</p>
			</div>
			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.8.7 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>如果要获取视频渲染时的texture时(设置textureBlock属性)，需要使用此初始化函数，将EAGLSharegroup对象作为参数传入，否则texture无法在多个OpenGL的context中共享使用</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/initWithContentURL:fileList:sharegroup:" title="initWithContentURL:fileList:sharegroup:"></a>
	<h3 class="method-title"><code><a href="#//api/name/initWithContentURL:fileList:sharegroup:">&ndash;&nbsp;initWithContentURL:fileList:sharegroup:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>初始化播放器并设置播放地址</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (instancetype)initWithContentURL:(NSURL *)<em>url</em> fileList:(NSArray *)<em>fileList</em> sharegroup:(EAGLSharegroup *)<em>sharegroup</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>url</code></th>
						<td><p>视频播放的绝对地址，可以设置为nil;</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>sharegroup</code></th>
						<td><p>opengl的sharegroup, 用于共享视频渲染texture, 可以设置为nil</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>list</code></th>
						<td><p>分片列表，可以设置为nil</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>返回KSYMoviePlayerController对象，该对象的视频播放地址ContentURL已经初始化。此时播放器状态为MPMoviePlaybackStateStopped.</p>
			</div>
			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 2.1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>该方法更适用于点播</p><p>url和list的设置逻辑:</p>

<ul>
<li>url和fileList不能同时为空</li>
<li>url为nil，fileList不为nil时，播放器取list中的地址进行播放</li>
<li>url不nil，fileList为nil时，播放器取baseURL进行播放</li>
<li>url和fileList都不为nil，播放会认为url是绝对地址，list为相对地址，找到url中的最后一个'/&lsquo;进行url/list 拼接后播放</li>
</ul>
<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/contentURL" title="contentURL"></a>
	<h3 class="method-title"><code><a href="#//api/name/contentURL">&nbsp;&nbsp;contentURL</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>正在播放的视频文件的URL地址，该地址可以是本地地址或者服务器地址。</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) NSURL *contentURL</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/fileList" title="fileList"></a>
	<h3 class="method-title"><code><a href="#//api/name/fileList">&nbsp;&nbsp;fileList</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>正在播放的视频文件的list列表</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) NSArray *fileList</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 2.1.0 and later.</p>
			</div>
			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/view" title="view"></a>
	<h3 class="method-title"><code><a href="#//api/name/view">&nbsp;&nbsp;view</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>包含视频播放内容的VIEW（只读）。</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) UIView *view</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>view的使用逻辑：</p>

<ul>
<li>可以通过frame设置view大大小</li>
<li>使用<a href="#//api/name/scalingMode">scalingMode</a> 可以更改视频内容在VIEW中的显示情况</li>
</ul>

			</div>
			

			

			
			<div class="method-subsection see-also-section">
				<h4 class="method-subtitle">See Also</h4>
				<ul>
					
					<li><code><p><a href="#//api/name/scalingMode">@property scalingMode</a></p></code></li>
					
				</ul>
			</div>
			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/controlStyle" title="controlStyle"></a>
	<h3 class="method-title"><code><a href="#//api/name/controlStyle">&nbsp;&nbsp;controlStyle</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>该属性当前不支持</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic) MPMovieControlStyle controlStyle</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<div class="warning"><p><strong>Warning:</strong> 该属性当前不支持</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/playbackState" title="playbackState"></a>
	<h3 class="method-title"><code><a href="#//api/name/playbackState">&nbsp;&nbsp;playbackState</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>当前播放器的播放状态（只读）。</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) MPMoviePlaybackState playbackState</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>可以通过该属性获取视频播放情况：</p>

<pre><code>
typedef NS_ENUM(NSInteger, MPMoviePlaybackState) {
MPMoviePlaybackStateStopped,           // 播放停止
MPMoviePlaybackStatePlaying,           // 正在播放
MPMoviePlaybackStatePaused,            // 播放暂停
MPMoviePlaybackStateInterrupted,       // 播放被打断
MPMoviePlaybackStateSeekingForward,    // 向前seeking中
MPMoviePlaybackStateSeekingBackward    // 向后seeking中
} NS_DEPRECATED_IOS(3_2, 9_0);
</code></pre>
<p>通知：</p>

<ul>
<li>MPMoviePlayerPlaybackDidFinishNotification，当播放完成时提供通知</li>
<li>MPMoviePlayerPlaybackStateDidChangeNotification，当播放状态变化时提供通知</li>
</ul>

			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/loadState" title="loadState"></a>
	<h3 class="method-title"><code><a href="#//api/name/loadState">&nbsp;&nbsp;loadState</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>当前网络加载情况</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) MPMovieLoadState loadState</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>可以通过该属性获取视频加载情况：</p>

<pre><code>
typedef NS_OPTIONS(NSUInteger, MPMovieLoadState) {
MPMovieLoadStateUnknown        = 0,        // 加载情况未知
MPMovieLoadStatePlayable       = 1 << 0,   // 加载完成，可以播放
MPMovieLoadStatePlaythroughOK  = 1 << 1,   // 加载完成，如果shouldAutoplay为YES，将自动开始播放
MPMovieLoadStateStalled        = 1 << 2,   // 如果视频正在加载中
} NS_DEPRECATED_IOS(3_2, 9_0);
</code></pre>
<p>通知：</p>

<ul>
<li>MPMoviePlayerLoadStateDidChangeNotification，当加载状态变化时提供通知</li>
</ul>

			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/shouldAutoplay" title="shouldAutoplay"></a>
	<h3 class="method-title"><code><a href="#//api/name/shouldAutoplay">&nbsp;&nbsp;shouldAutoplay</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>播放视频时是否需要自动播放，默认值为YES。</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic) BOOL shouldAutoplay</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/scalingMode" title="scalingMode"></a>
	<h3 class="method-title"><code><a href="#//api/name/scalingMode">&nbsp;&nbsp;scalingMode</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>当前缩放显示模式。</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic) MPMovieScalingMode scalingMode</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>当前支持四种缩放模式：</p>

<pre><code>
typedef NS_ENUM(NSInteger, MPMovieScalingMode) {
MPMovieScalingModeNone,       // 无缩放
MPMovieScalingModeAspectFit,  // 同比适配，某个方向会有黑边
MPMovieScalingModeAspectFill, // 同比填充，某个方向的显示内容可能被裁剪
MPMovieScalingModeFill        // 满屏填充，与原始视频比例不一致
} NS_DEPRECATED_IOS(2_0, 9_0);
</code></pre>

			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/duration" title="duration"></a>
	<h3 class="method-title"><code><a href="#//api/name/duration">&nbsp;&nbsp;duration</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>当前视频总时长</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) NSTimeInterval duration</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>视频总时长，单位是秒。</p>

<ul>
<li>如果是直播视频源，总时长为0.</li>
<li>如果该信息未知，总时长默认为0.</li>
</ul>

			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/playableDuration" title="playableDuration"></a>
	<h3 class="method-title"><code><a href="#//api/name/playableDuration">&nbsp;&nbsp;playableDuration</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>当前视频可播放长度</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) NSTimeInterval playableDuration</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>视频可播放时长，单位是秒。</p>

<ul>
<li>currentPlaybackTime 标记的是播放器当前已播放的时长。</li>
<li>playableDuration 标记的是播放器缓冲的时间，会稍大于currentPlaybackTime，与currentPlaybackTime的差值则是缓冲长度。</li>
<li><a href="#//api/name/duration">duration</a> 是视频总时长。</li>
</ul>

			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/shouldEnableKSYStatModule" title="shouldEnableKSYStatModule"></a>
	<h3 class="method-title"><code><a href="#//api/name/shouldEnableKSYStatModule">&nbsp;&nbsp;shouldEnableKSYStatModule</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>数据统计，默认开启</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) BOOL shouldEnableKSYStatModule</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>可开关</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/naturalSize" title="naturalSize"></a>
	<h3 class="method-title"><code><a href="#//api/name/naturalSize">&nbsp;&nbsp;naturalSize</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>当前视频宽高</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) CGSize naturalSize</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>获取信息</p>

<ul>
<li>监听MPMovieNaturalSizeAvailableNotification</li>
<li>播放过程中，宽高信息可能会产生更改</li>
</ul>

			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/naturalRotate" title="naturalRotate"></a>
	<h3 class="method-title"><code><a href="#//api/name/naturalRotate">&nbsp;&nbsp;naturalRotate</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>当前视频自带旋转（逆时针）角度</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) NSInteger naturalRotate</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 2.2.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p><a href="#//api/name/rotateDegress">rotateDegress</a> 是人为旋转角度，naturalRotate是文件meta信息中自带的旋转角度</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/logBlock" title="logBlock"></a>
	<h3 class="method-title"><code><a href="#//api/name/logBlock">&nbsp;&nbsp;logBlock</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>获取播放器日志</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, copy) void ( ^ ) ( NSString *logJson ) logBlock</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>相关字段说明请联系金山云技术支持</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/bufferTimeMax" title="bufferTimeMax"></a>
	<h3 class="method-title"><code><a href="#//api/name/bufferTimeMax">&nbsp;&nbsp;bufferTimeMax</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>bufferTimeMax指定播放时的缓冲时长，单位秒</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property NSTimeInterval bufferTimeMax</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>对于直播流，该属性用于直播延时控制；对于点播流，该属性用于缓冲时长控制</p>

<ul>
<li>直播流该属性默认为2秒，设置为0或负值时为关闭直播追赶</li>
<li>点播流该属性默认为3600秒，且与bufferSizeMax同时生效，两者取小值</li>
</ul>
<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/bufferSizeMax" title="bufferSizeMax"></a>
	<h3 class="method-title"><code><a href="#//api/name/bufferSizeMax">&nbsp;&nbsp;bufferSizeMax</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>bufferSizeMax指定点播播放时的最大缓冲，单位MB</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property NSUInteger bufferSizeMax</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 2.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>取值大小为0-100，超过此区间时将使用默认值15。</p>

<ul>
<li>该属性仅对点播视频有效；</li>
<li>默认值为15。</li>
</ul>
<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/readSize" title="readSize"></a>
	<h3 class="method-title"><code><a href="#//api/name/readSize">&nbsp;&nbsp;readSize</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>已经加载的数据大小</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) double readSize</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>已经加载的数据大小，单位是兆。</p>

<ul>
<li>已经加载的全部数据大小，包括音频和视频。</li>
<li>数据包括已经播放的，和当前的cache数据。</li>
</ul>
<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/bufferEmptyDuration" title="bufferEmptyDuration"></a>
	<h3 class="method-title"><code><a href="#//api/name/bufferEmptyDuration">&nbsp;&nbsp;bufferEmptyDuration</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>buffer为空时，拉取数据所耗的时长</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) NSTimeInterval bufferEmptyDuration</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>当buffer为空时，开始统计。单位为秒。</p>

<ul>
<li>当MPMoviePlayerLoadStateDidChangeNotification 通知发起；</li>
<li>MPMovieLoadState状态为MPMovieLoadStateStalled 开始计时；</li>
<li>MPMovieLoadState状态为MPMovieLoadStatePlayable 或者 MPMovieLoadStatePlaythroughOK时，结束计时；</li>
</ul>
<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/bufferEmptyCount" title="bufferEmptyCount"></a>
	<h3 class="method-title"><code><a href="#//api/name/bufferEmptyCount">&nbsp;&nbsp;bufferEmptyCount</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>发起cache的次数</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) NSInteger bufferEmptyCount</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>当buffer为空时，统计一次，统计的条件为</p>

<ul>
<li>当MPMoviePlayerLoadStateDidChangeNotification 通知发起</li>
<li>MPMovieLoadState 状态为MPMovieLoadStateStalled</li>
</ul>
<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/serverAddress" title="serverAddress"></a>
	<h3 class="method-title"><code><a href="#//api/name/serverAddress">&nbsp;&nbsp;serverAddress</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>视频流server ip</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) NSString *serverAddress</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>当收到prepared后，即可以查询当前连接的视频流server ip</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/clientIP" title="clientIP"></a>
	<h3 class="method-title"><code><a href="#//api/name/clientIP">&nbsp;&nbsp;clientIP</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>客户端出口IP</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) NSString *clientIP</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.5.0.1 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>当收到prepared后，即可以查询客户端的出口IP</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/localDNSIP" title="localDNSIP"></a>
	<h3 class="method-title"><code><a href="#//api/name/localDNSIP">&nbsp;&nbsp;localDNSIP</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>客户端LocalDNSIP</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) NSString *localDNSIP</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.5.0.1 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>当收到prepared后，即可以查询客户端的LocalDNSIP</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/qosInfo" title="qosInfo"></a>
	<h3 class="method-title"><code><a href="#//api/name/qosInfo">&nbsp;&nbsp;qosInfo</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>视频流qos信息</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) KSYQosInfo *qosInfo</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>在播放过程中，即可以查询当前连接的视频流qos信息</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/thumbnailImageAtCurrentTime" title="thumbnailImageAtCurrentTime"></a>
	<h3 class="method-title"><code><a href="#//api/name/thumbnailImageAtCurrentTime">&ndash;&nbsp;thumbnailImageAtCurrentTime</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>截图</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (UIImage *)thumbnailImageAtCurrentTime</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>当前时刻的视频UIImage 图像</p>
			</div>
			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/shouldEnableVideoPostProcessing" title="shouldEnableVideoPostProcessing"></a>
	<h3 class="method-title"><code><a href="#//api/name/shouldEnableVideoPostProcessing">&nbsp;&nbsp;shouldEnableVideoPostProcessing</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>是否开启视频后处理</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic) BOOL shouldEnableVideoPostProcessing</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>默认是关闭</p>

<ul>
<li>只在<a href="../Protocols/KSYMediaPlayback.html#//api/name/prepareToPlay">prepareToPlay</a> 调用前设置生效；</li>
</ul>
<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/videoDecoderMode" title="videoDecoderMode"></a>
	<h3 class="method-title"><code><a href="#//api/name/videoDecoderMode">&nbsp;&nbsp;videoDecoderMode</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>是否开启硬件解码</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) MPMovieVideoDecoderMode videoDecoderMode</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.3.1 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>如果系统版本高于8.0，默认开启硬件解码；否则，默认使用软件解码</p>

<ul>
<li>只在<a href="../Protocols/KSYMediaPlayback.html#//api/name/prepareToPlay">prepareToPlay</a> 调用前设置生效</li>
</ul>
<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/shouldMute" title="shouldMute"></a>
	<h3 class="method-title"><code><a href="#//api/name/shouldMute">&nbsp;&nbsp;shouldMute</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>是否静音</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic) BOOL shouldMute</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.3.1 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/shouldHideVideo" title="shouldHideVideo"></a>
	<h3 class="method-title"><code><a href="#//api/name/shouldHideVideo">&nbsp;&nbsp;shouldHideVideo</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>是否隐藏视频</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic) BOOL shouldHideVideo</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.6.1 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/shouldLoop" title="shouldLoop"></a>
	<h3 class="method-title"><code><a href="#//api/name/shouldLoop">&nbsp;&nbsp;shouldLoop</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>是否循环播放</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic) BOOL shouldLoop</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.3.1 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>默认不循环</p>

<ul>
<li>只在<a href="../Protocols/KSYMediaPlayback.html#//api/name/prepareToPlay">prepareToPlay</a> 调用前设置生效；</li>
<li>只有点播生效,直播场景请勿设置</li>
</ul>
<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/videoDataBlock" title="videoDataBlock"></a>
	<h3 class="method-title"><code><a href="#//api/name/videoDataBlock">&nbsp;&nbsp;videoDataBlock</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>视频数据回调</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, copy) KSYPlyVideoDataBlock videoDataBlock</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.3.3 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>调用<a href="../Protocols/KSYMediaPlayback.html#//api/name/prepareToPlay">prepareToPlay</a>方法之前设置生效，回调数据为同步完成后的数据</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			
			<div class="method-subsection see-also-section">
				<h4 class="method-subtitle">See Also</h4>
				<ul>
					
					<li><code><p><a href="../Blocks/KSYPlyVideoDataBlock.html">KSYPlyVideoDataBlock</a></p></code></li>
					
				</ul>
			</div>
			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/audioDataBlock" title="audioDataBlock"></a>
	<h3 class="method-title"><code><a href="#//api/name/audioDataBlock">&nbsp;&nbsp;audioDataBlock</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>音频数据回调</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, copy) KSYPlyAudioDataBlock audioDataBlock</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.3.3 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>调用<a href="../Protocols/KSYMediaPlayback.html#//api/name/prepareToPlay">prepareToPlay</a>方法之前设置生效，回调数据为同步完成后的数据</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			
			<div class="method-subsection see-also-section">
				<h4 class="method-subtitle">See Also</h4>
				<ul>
					
					<li><code><p><a href="../Blocks/KSYPlyAudioDataBlock.html">KSYPlyAudioDataBlock</a></p></code></li>
					
				</ul>
			</div>
			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/messageDataBlock" title="messageDataBlock"></a>
	<h3 class="method-title"><code><a href="#//api/name/messageDataBlock">&nbsp;&nbsp;messageDataBlock</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>消息数据回调</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, copy) KSYPlyMessageDataBlock messageDataBlock</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.3.3 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>调用<a href="../Protocols/KSYMediaPlayback.html#//api/name/prepareToPlay">prepareToPlay</a>方法之前设置生效，回调数据为同步完成后的数据</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			
			<div class="method-subsection see-also-section">
				<h4 class="method-subtitle">See Also</h4>
				<ul>
					
					<li><code><p><a href="../Blocks/KSYPlyMessageDataBlock.html">KSYPlyMessageDataBlock</a></p></code></li>
					
				</ul>
			</div>
			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/textureBlock" title="textureBlock"></a>
	<h3 class="method-title"><code><a href="#//api/name/textureBlock">&nbsp;&nbsp;textureBlock</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>视频图像texture回调</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, copy) KSYPlyTextureBlock textureBlock</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.8.7 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>调用<a href="../Protocols/KSYMediaPlayback.html#//api/name/prepareToPlay">prepareToPlay</a>方法之前设置生效</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口。使用该属性时需要在初始化时使用<a href="[initWithContentURL:sharegroup:]">initWithContentURL:sharegroup:</a>函数初始化播放器，否则该属性无效</p></div>
			</div>
			

			

			
			<div class="method-subsection see-also-section">
				<h4 class="method-subtitle">See Also</h4>
				<ul>
					
					<li><code><p><a href="../Blocks/KSYPlyAudioDataBlock.html">KSYPlyAudioDataBlock</a></p></code></li>
					
				</ul>
			</div>
			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/rotateDegress" title="rotateDegress"></a>
	<h3 class="method-title"><code><a href="#//api/name/rotateDegress">&nbsp;&nbsp;rotateDegress</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>指定逆时针旋转角度，只能是0/90/180/270, 不符合上述值不进行旋转</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic) int rotateDegress</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.4.1 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/mirror" title="mirror"></a>
	<h3 class="method-title"><code><a href="#//api/name/mirror">&nbsp;&nbsp;mirror</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>指定视频是否镜像显示</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic) BOOL mirror</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.8.4 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/superFastPlay" title="superFastPlay"></a>
	<h3 class="method-title"><code><a href="#//api/name/superFastPlay">&nbsp;&nbsp;superFastPlay</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>快速播放</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic) BOOL superFastPlay</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.5.2 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>默认不快速播放</p>

<ul>
<li>非固定倍速下的快速播放，而是全速将解码器中的数据显示出来</li>
<li>当播放文件存在音频时该功能生效；</li>
<li>播放前或者播放过程中均可配置；</li>
<li>开启快速播放后，不在输出声音，但是audioDataBlock中依然会上抛pcm数据</li>
<li>开启快速播放后，可能会导致播放器不停的进入/结束缓冲状态；</li>
</ul>
<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/deinterlaceMode" title="deinterlaceMode"></a>
	<h3 class="method-title"><code><a href="#//api/name/deinterlaceMode">&nbsp;&nbsp;deinterlaceMode</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>是否进行视频反交错处理</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic) MPMovieVideoDeinterlaceMode deinterlaceMode</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.7.2 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>默认不进行反交错处理</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/bInterruptOtherAudio" title="bInterruptOtherAudio"></a>
	<h3 class="method-title"><code><a href="#//api/name/bInterruptOtherAudio">&nbsp;&nbsp;bInterruptOtherAudio</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>是否打断其他后台的音乐播放</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic) BOOL bInterruptOtherAudio</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.5.3 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>也可以理解为是否允许和其他音频同时播放</p><p>YES:开始播放时，会打断其他的后台播放音频，也会被其他音频播放打断</p><p>NO: 可以与其他后台播放共存，相互之间不会被打断</p><p>默认为YES</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/audioPan" title="audioPan"></a>
	<h3 class="method-title"><code><a href="#//api/name/audioPan">&nbsp;&nbsp;audioPan</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>立体声平衡模式，默认立体声输出，取值范围为[-1.0, 1.0]</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic) float audioPan</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 2.0.3 and later</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>针对单声道或双声道音频播放配置时有效，多声道音频播放配置无效</p><p>需要佩戴耳机以区分左右声道，手机外放无效果</p><p>prepareToPlay前配置无效，应在播放过程中动态配置</p><p>该值为0.0时，左右声道都有声音，&lt; 0时，右声道声音小于左声道；> 0时，左声道声音小于右声道</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/networkDetectURL" title="networkDetectURL"></a>
	<h3 class="method-title"><code><a href="#//api/name/networkDetectURL">&nbsp;&nbsp;networkDetectURL</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>用于检测网络连通性的地址，默认使用地址为“www.baidu.com”</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readwrite) NSString *networkDetectURL</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 2.1.1 and later</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>用户可自定义地址，但不可设置无效地址，如果不清楚规则，建议使用默认值</p><p>设置为nil时，则关闭网络连通性的检测, networkStatus属性值为-1</p><p>建议在创建对象后设置一次或不设置，不推荐在播放过程中动态配置</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/networkStatus" title="networkStatus"></a>
	<h3 class="method-title"><code><a href="#//api/name/networkStatus">&nbsp;&nbsp;networkStatus</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>网络连通状态</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) KSYNetworkStatus networkStatus</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 2.1.1 and later</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>使用 www.kingsoft.com 作为检测目标</p><p>如果networkStatus不等于KSYNetworkStatus枚举中的任意值，则表明当前尚未监测到网络状态</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/playbackSpeed" title="playbackSpeed"></a>
	<h3 class="method-title"><code><a href="#//api/name/playbackSpeed">&nbsp;&nbsp;playbackSpeed</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>设置播放速度，取值范围(0.5~2.0)，默认1.0</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic) float playbackSpeed</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 2.4.1 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<div class="warning"><p><strong>Warning:</strong> 该属性由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/setTimeout:readTimeout:" title="setTimeout:readTimeout:"></a>
	<h3 class="method-title"><code><a href="#//api/name/setTimeout:readTimeout:">&ndash;&nbsp;setTimeout:readTimeout:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>timeout指定拉流超时时间,单位是秒</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)setTimeout:(int)<em>prepareTimeout</em> readTimeout:(int)<em>readTimeout</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>prepareTimeout</code></th>
						<td><p>建立链接超时时间，默认值是10秒</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>readTimeout</code></th>
						<td><p>拉流超时时间，默认值是30秒</p></td>
					</tr>
				
				</table>
			</div>
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.3.1 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/setVolume:rigthVolume:" title="setVolume:rigthVolume:"></a>
	<h3 class="method-title"><code><a href="#//api/name/setVolume:rigthVolume:">&ndash;&nbsp;setVolume:rigthVolume:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>setVolume指定播放器输出音量</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)setVolume:(float)<em>leftVolume</em> rigthVolume:(float)<em>rightVolume</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>leftVolume</code></th>
						<td><p>left volume scalar  [0~2.0f]</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>rightVolume</code></th>
						<td><p>right volume scalar [0~2.0f]</p></td>
					</tr>
				
				</table>
			</div>
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.3.3 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>使用说明</p>

<ul>
<li>输入参数超出范围将失效</li>
<li>输出到speaker时需同时设置左右音量为有效值
  如：leftVolume ＝ rightVolume ＝ 0.5f</li>
</ul>
<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/getVersion" title="getVersion"></a>
	<h3 class="method-title"><code><a href="#//api/name/getVersion">&ndash;&nbsp;getVersion</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>获取sdk版本</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (NSString *)getVersion</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.3.1 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/getMetadata" title="getMetadata"></a>
	<h3 class="method-title"><code><a href="#//api/name/getMetadata">&ndash;&nbsp;getMetadata</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>获取播放Meta信息</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (NSDictionary *)getMetadata</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.3.1 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>收到MPMediaPlaybackIsPreparedToPlayDidChangeNotification通知后才能获取到数据</p><p>暂时支持的查询包括</p>

<ul>
<li>kKSYPLYHttpFirstDataTime 建链成功后到收到第一个包所消耗的时间</li>
<li>kKSYPLYHttpConnectTime 链接服务器所消耗的时间</li>
<li>kKSYPLYHttpAnalyzeDns 解析DNS所消耗的时间</li>
</ul>
<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/getMetadata:" title="getMetadata:"></a>
	<h3 class="method-title"><code><a href="#//api/name/getMetadata:">&ndash;&nbsp;getMetadata:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>获取播放Meta</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (NSDictionary *)getMetadata:(MPMovieMetaType)<em>metaType</em></code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 2.5.2 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>收到MPMediaPlaybackIsPreparedToPlayDidChangeNotification通知后才能获取到数据</p><p>暂时支持的查询包括</p>

<ul>
<li>当metaType为MPMovieMetaType_Media时，所得到的结果与getMetadata方法相同</li>
<li>当metaType为其他类型时，得到的当前播放的视频/音频/字幕流的meta信息</li>
</ul>
<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/isPlaying" title="isPlaying"></a>
	<h3 class="method-title"><code><a href="#//api/name/isPlaying">&ndash;&nbsp;isPlaying</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>当前播放器是否在播放</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (BOOL)isPlaying</code></div>

		    
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>获取<a href="#//api/name/playbackState">playbackState</a>信息，如果当前状态为MPMoviePlaybackStatePlaying，则返回TRUE。其他情况返回FASLE。</p>
			</div>
			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			
			<div class="method-subsection see-also-section">
				<h4 class="method-subtitle">See Also</h4>
				<ul>
					
					<li><code><p><a href="#//api/name/playbackState">@property playbackState</a></p></code></li>
					
				</ul>
			</div>
			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/reload:" title="reload:"></a>
	<h3 class="method-title"><code><a href="#//api/name/reload:">&ndash;&nbsp;reload:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>重新启动拉流</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)reload:(NSURL *)<em>aUrl</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>aUrl</code></th>
						<td><p>视频播放地址，该地址可以是本地地址或者服务器地址.如果为nil，则使用前一次播放地址</p></td>
					</tr>
				
				</table>
			</div>
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>调用场景如下：</p>

<ul>
<li>当播放器调用方发现卡顿时，可以主动调用</li>
<li>当估计出更优质的拉流ip时，可以主动调用</li>
<li>当发生WiFi/3G网络切换时，可以主动调用</li>
<li>当播放器回调体现播放完成时，可以主动调用</li>
<li>播放器SDK不会自动调用reload功能</li>
</ul>
<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/reload:flush:" title="reload:flush:"></a>
	<h3 class="method-title"><code><a href="#//api/name/reload:flush:">&ndash;&nbsp;reload:flush:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>重新启动拉流</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)reload:(NSURL *)<em>aUrl</em> flush:(BOOL)<em>flush</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>aUrl</code></th>
						<td><p>视频播放地址，该地址可以是本地地址或者服务器地址.如果为nil，则使用前一次播放地址</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>flush</code></th>
						<td><p>是否清除上一个url的缓冲区内容，该值为NO不清除，为YES则清除</p></td>
					</tr>
				
				</table>
			</div>
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>说明：</p>

<ul>
<li>如果在直播过程中使用reload，希望达到续播的效果，建议flush值设为NO</li>
</ul>
<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/reload:flush:mode:" title="reload:flush:mode:"></a>
	<h3 class="method-title"><code><a href="#//api/name/reload:flush:mode:">&ndash;&nbsp;reload:flush:mode:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>重新启动拉流</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)reload:(NSURL *)<em>aUrl</em> flush:(bool)<em>flush</em> mode:(MPMovieReloadMode)<em>mode</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>aUrl</code></th>
						<td><p>视频播放地址，该地址可以是本地地址或者服务器地址.如果为nil，则使用前一次播放地址</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>flush</code></th>
						<td><p>是否清除上一个url的缓冲区内容，该值为NO不清除，为YES则清除</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>mode</code></th>
						<td><p>配置reload后的加载模式，该值为<a href="../Constants/MPMovieReloadMode.html">MPMovieReloadMode</a><em>Fast则启用加速播放；若为<a href="../Constants/MPMovieReloadMode.html">MPMovieReloadMode</a></em>Accurate则启用精准查找模式播放</p></td>
					</tr>
				
				</table>
			</div>
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.6.3 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>说明：</p>

<ul>
<li>如果在直播过程中使用reload，希望达到续播的效果，建议flush值设为NO</li>
<li>设置为<a href="../Constants/MPMovieReloadMode.html">MPMovieReloadMode</a>_Fast模式可以加快起播速度，但在码流音视频交织较差的情况下，可能无法检测到所有音视频流</li>
<li>设置为<a href="../Constants/MPMovieReloadMode.html">MPMovieReloadMode</a>_Accurate模式起播速度会有所下降，但可以保证检测到所有音视频流</li>
<li>如果是监听到MPMoviePlayerSuggestReloadNotification消息后调用reload接口，则mode模式一定要设置为MPMovieReloadMode_Accurate，其它情况可根据实际使用场景自行配置</li>
</ul>
<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/getCurrentPts" title="getCurrentPts"></a>
	<h3 class="method-title"><code><a href="#//api/name/getCurrentPts">&ndash;&nbsp;getCurrentPts</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>获取当前播放的pts</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (NSTimeInterval)getCurrentPts</code></div>

		    
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.5.0.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/setUrl:" title="setUrl:"></a>
	<h3 class="method-title"><code><a href="#//api/name/setUrl:">&ndash;&nbsp;setUrl:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>设置播放url</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)setUrl:(NSURL *)<em>url</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>url</code></th>
						<td><p>视频播放地址，该地址可以是本地地址或者服务器地址.</p></td>
					</tr>
				
				</table>
			</div>
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.6.2 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>使用说明</p>

<ul>
<li>通常用于使用一个对象进行多次播放的场景</li>
<li>调用reset接口停止播放后使用该接口来设置下一次播放地址</li>
<li>需要在<a href="../Protocols/KSYMediaPlayback.html#//api/name/prepareToPlay">prepareToPlay</a>方法之前设置</li>
<li>v2.1.0及之后的版本，该url不可设置为nil；之前的版本设置为nil，会播放上一次的播放地址</li>
</ul>
<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/setUrl:fileList:" title="setUrl:fileList:"></a>
	<h3 class="method-title"><code><a href="#//api/name/setUrl:fileList:">&ndash;&nbsp;setUrl:fileList:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>设置播放url</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)setUrl:(NSURL *)<em>url</em> fileList:(NSArray *)<em>fileList</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>fileList</code></th>
						<td><p>分片列表</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>baseURL</code></th>
						<td><p>视频播放的绝对地址，该地址可以是本地地址或者服务器地址</p></td>
					</tr>
				
				</table>
			</div>
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 2.1.0 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>url和fileList不可同时为nil</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/reset:" title="reset:"></a>
	<h3 class="method-title"><code><a href="#//api/name/reset:">&ndash;&nbsp;reset:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>重置播放器</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)reset:(BOOL)<em>holdLastPic</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>holdLastPic</code></th>
						<td><p>是否保留最后一帧</p></td>
					</tr>
				
				</table>
			</div>
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.6.2 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>使用说明</p>

<ul>
<li>通常用于使用一个对象进行多次播放的场景</li>
<li>该方法可以停止播放，但是不会销毁播放器</li>
<li>调用该方法后可以通过调用stop方法来销毁播放器</li>
<li>如果使用一个对象进行多次播放，需要在reset后使用setUrl方法设置下次播放地址</li>
</ul>
<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/seekTo:accurate:" title="seekTo:accurate:"></a>
	<h3 class="method-title"><code><a href="#//api/name/seekTo:accurate:">&ndash;&nbsp;seekTo:accurate:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>跳转到指定位置播放</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)seekTo:(double)<em>pos</em> accurate:(BOOL)<em>isAccurate</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>pos</code></th>
						<td><p>跳转到的位置，单位秒</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>isAccurate</code></th>
						<td><p>是否精确跳转，NO时等同于currentPlaybackTime, YES时为精确跳转</p></td>
					</tr>
				
				</table>
			</div>
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 1.9.1 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>媒体文件总时长较小且关键帧间隔较大时，需要使用精确跳转， 总时长较大或者不需要精确定位时可以使用currentPlaybackTime或者将isAccurate设置为NO进行跳转</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/setHttpHeaders:" title="setHttpHeaders:"></a>
	<h3 class="method-title"><code><a href="#//api/name/setHttpHeaders:">&ndash;&nbsp;setHttpHeaders:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>发送http请求时需要header带上的字段</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)setHttpHeaders:(NSDictionary *)<em>headers</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>header</code></th>
						<td><p>自定义http header字段</p></td>
					</tr>
				
				</table>
			</div>
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 2.0.3 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>在调用prepareToPlay方法前调用生效</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/setTrackSelected:selected:" title="setTrackSelected:selected:"></a>
	<h3 class="method-title"><code><a href="#//api/name/setTrackSelected:selected:">&ndash;&nbsp;setTrackSelected:selected:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>设置开启/关闭指定的媒体轨道</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)setTrackSelected:(NSInteger)<em>trackIndex</em> selected:(BOOL)<em>selected</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>trackIndex</code></th>
						<td><ul>
<li>轨道的stream index</li>
</ul>
</td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>selected</code></th>
						<td><ul>
<li>开启/关闭指定媒体轨道</li>
</ul>
</td>
					</tr>
				
				</table>
			</div>
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 2.5.2 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/setExtSubtitleFilePath:" title="setExtSubtitleFilePath:"></a>
	<h3 class="method-title"><code><a href="#//api/name/setExtSubtitleFilePath:">&ndash;&nbsp;setExtSubtitleFilePath:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>设置本地字幕文件的地址</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)setExtSubtitleFilePath:(NSString *)<em>subtitleFilePath</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>subtitleFilePath</code></th>
						<td><p>本地字幕文件地址</p></td>
					</tr>
				
				</table>
			</div>
			

			

			
			<div class="method-subsection availability">
				<h4 class="method-subtitle parameter-title">Availability</h4>
				<p>Available in KSYMoviePlayerController 2.5.2 and later.</p>
			</div>
			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>在播放过程中调用</p><div class="warning"><p><strong>Warning:</strong> 该方法由金山云引入，不是原生系统接口</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMoviePlayerController.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						
					</div>
					
					

                    
                    
          
				</main>

				<footer>
					<div class="footer-copyright">
						
						<p class="copyright">Copyright &copy; 2018 Kingsoft. All rights reserved. </p>
						
						
						<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
						
					</div>
				</footer>
			</div>
		</div>
	</article>

	<script src="../js/script.js"></script>
</body>
</html>
